package com.regent.central.bill.core.mrp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "central_bill_material_arrive")
public class BillMaterialArrive {
    @Id
    private String id;

    /**
     * 记录版本
     */
    private Integer version;

    @Column(name = "date_created")
    private Date dateCreated;

    @Column(name = "date_updated")
    private Date dateUpdated;

    @Column(name = "time_deleted")
    private Long timeDeleted;

    /**
     * 老板组织ID
     */
    @Column(name = "boss_unit_id")
    private String bossUnitId;

    /**
     * 组织ID
     */
    @Column(name = "unit_id")
    private String unitId;

    /**
     * 物料供应商ID
     */
    @Column(name = "supplier_id")
    private String supplierId;

    /**
     * 到料单号
     */
    @Column(name = "order_no")
    private String orderNo;

    /**
     * 到料仓库
     */
    @Column(name = "storehouse_id")
    private String storehouseId;

    /**
     * 到料员ID
     */
    @Column(name = "creator_id")
    private String creatorId;

    @Column(name = "creator_name")
    private String creatorName;

    private String remark;

    @Column(name = "date_arrive")
    private Date dateArrive = new Date();

    /**
     * 撤销标记 0：未撤销 1：已撤销
     */
    @Column(name = "cancel")
    private boolean cancel;

    /**
     * 记录库存变动记录ID, 用于撤销时撤销库存
     */
    @Column(name = "stock_change_id")
    private String stockChangeId;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取记录版本
     *
     * @return version - 记录版本
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置记录版本
     *
     * @param version 记录版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * @return date_created
     */
    public Date getDateCreated() {
        return dateCreated;
    }

    /**
     * @param dateCreated
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    /**
     * @return date_updated
     */
    public Date getDateUpdated() {
        return dateUpdated;
    }

    /**
     * @param dateUpdated
     */
    public void setDateUpdated(Date dateUpdated) {
        this.dateUpdated = dateUpdated;
    }

    /**
     * @return time_deleted
     */
    public Long getTimeDeleted() {
        return timeDeleted;
    }

    /**
     * @param timeDeleted
     */
    public void setTimeDeleted(Long timeDeleted) {
        this.timeDeleted = timeDeleted;
    }

    /**
     * 获取老板组织ID
     *
     * @return boss_unit_id - 老板组织ID
     */
    public String getBossUnitId() {
        return bossUnitId;
    }

    /**
     * 设置老板组织ID
     *
     * @param bossUnitId 老板组织ID
     */
    public void setBossUnitId(String bossUnitId) {
        this.bossUnitId = bossUnitId;
    }

    /**
     * 获取组织ID
     *
     * @return unit_id - 组织ID
     */
    public String getUnitId() {
        return unitId;
    }

    /**
     * 设置组织ID
     *
     * @param unitId 组织ID
     */
    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    /**
     * 获取物料供应商ID
     *
     * @return supplier_id - 物料供应商ID
     */
    public String getSupplierId() {
        return supplierId;
    }

    /**
     * 设置物料供应商ID
     *
     * @param supplierId 物料供应商ID
     */
    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 获取到料单号
     *
     * @return order_no - 到料单号
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * 设置到料单号
     *
     * @param orderNo 到料单号
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取到料仓库
     *
     * @return storehouse_id - 到料仓库
     */
    public String getStorehouseId() {
        return storehouseId;
    }

    /**
     * 设置到料仓库
     *
     * @param storehouseId 到料仓库
     */
    public void setStorehouseId(String storehouseId) {
        this.storehouseId = storehouseId;
    }

    /**
     * 获取到料员ID
     *
     * @return creator_id - 到料员ID
     */
    public String getCreatorId() {
        return creatorId;
    }

    /**
     * 设置到料员ID
     *
     * @param creatorId 到料员ID
     */
    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    /**
     * @return creator_name
     */
    public String getCreatorName() {
        return creatorName;
    }

    /**
     * @param creatorName
     */
    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    /**
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getDateArrive() {
        return dateArrive;
    }

    public void setDateArrive(Date dateArrive) {
        this.dateArrive = dateArrive;
    }

    public boolean isCancel() {
        return cancel;
    }

    public void setCancel(boolean cancel) {
        this.cancel = cancel;
    }

    public String getStockChangeId() {
        return stockChangeId;
    }

    public void setStockChangeId(String stockChangeId) {
        this.stockChangeId = stockChangeId;
    }
}